

 class LoginStatus extends Component {
    // constructor (props) {
    //   super(props)
    //   this.state = {isToggleOn: true}
    // }
  
    onClick = (e) => {
    //   e.stopPropagation()
    //   this.setState(prevState => ({
    //     isToggleOn: !prevState.isToggleOn
    //   }))
    }
  
    render () {
      return (
        <button onClick={this.onClick}>
          {this.state.isToggleOn ? 'ON' : 'OFF'}
        </button>
      )
    }
  }